");HashMap infoMap = new HashMap ();InfoMap. put ("SERVER_NAME", SERVER_NAME );InfoMap. put ("SERVER_SOFTWARE", SERVER_SOFTWARE );InfoMap. put ("SERVER_PROTOCOL", SERVER_PROTOCOL );InfoMap. put ("SERVER_PORT", SERVER_PORT );InfoMap
the property value of the map consisting of the list
**/
private List getfiledsinfo (Object o) {
Field[] Fields=o.getclass (). Getdeclaredfields ();
String[] fieldnames=new string[fields.length];
List List = new ArrayList ();
Map infomap=null;
For (int i=0;i
Infomap = new HashMap ();
Infomap.put ("type", Fields[i].gettype (). toString ());
Infomap.put ("name", Fields[i].getname (
/lib/sparcv9:/opt/orclcluster/lib/:/usr/CCS/lib/sparcv9:/usr/LIB/sparcv9-QY-LC-laio-lposix4-lkstat-LM/Oracle/caty12/home/products/10203/lib/Prod/lib/V9/crtn. o
CP $ ORACLE_HOME/rdbms/lib/bbed $ ORACLE_HOME/bin
BbedPassword: Blockedit> (The default password for bbed is blockedit)
Bbed: Release 2.0.0.0.0-limited production on Wed Sep 16 23:14:39 2009
Copyright (c) 1982,200 5, Oracle. All rights reserved.
*************!!! For Oracle internal use only !!! ***************
Bbed>Help allSet DBA [
$.each () can be traversed, hehe. For example, the following JSON data:{"Comments": [{"Content": "Very good", "id": 1, "nickname": "Nani"},{"content": "Yo West yo West", "id": 2, "nickname": "Johnny"}], "Content": " You're a wood man, haha. "," Infomap ": {" gender ":" Male "," occupation ":" Programmer "," blog ":" http:\/\/www.cnblogs.com\/codeplus\/"}," title ":" 123 Wood Man "}JS as follows:function Loadinfo () { $.getjson ("Loadinfo", functio
, you need more $.each () to traverse it, hehe. For example, the following JSON data:
{"
comments": [
{
"content": "Very good",
"id": 1,
"nickname": "Nani"
},
{
" Content ": Yo West yo West",
"id": 2,
"nickname": "Xiao Qiang"
}
],
"content": "You are wood people, haha." ",
" Infomap ": {"
gender ":" Male ",
" occupation ":" Programmer ",
" blog ":" http://www.cnblogs.com/c
(). putstring (Key, value ). commit ();} preferences. edit (). putstring ("configuratonstatus", "1 "). commit ();} catch (ioexception e) {// todo auto-generated catch blockreturn false;} return false ;}
The above code is written into the judgment code.
Step 3: After the application enters the homepage, the order of the displayed list can be obtained from preference.
/*** Obtain the corresponding configuration file stringvalue * @ Param context * @ Param key */public static string getstringval
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.